If you would like to know more about the use of public and private keys in blockchain, please read this article.